package com.dg.river.netty.axle.msg2dev;

/**
 * Created by zhangguohua on 2019/7/4.
 */
public class MessageConst {
    public static final short MESSAGE_FLAG = 0x70;


    //稽查终端签到
    public static final short MTYPE_AUDITSIGNIN = 0x01;
    //车轴设备签到
    public static final short MTYPE_AXLESIGNIN = 0x11;
    //消息返回
    public static final short MTYPE_RETURN = 0x02;
    //心跳指令
    public static final short MTYPE_HEARTBEAT = 0x05;
    //车轴数据推送
    public static final short MTYPE_AXLEDATA = 0x21;
    //稽查消息推送
    public static final short MTYPE_AUDITINFO = 0x22;






    /**处理结果*/
    //成功
    public static final byte RETURN_SUCCESS = 0x00;
    //失败
    public static final byte RETURN_ERROR = 0x01;

    /**错误代码*/
    //正常
    public static final short ERRCODE_OK = 0x0000;
    //非法报文
    public static final short ERRCODE_INVALIDMSG = 0x0001;
    //无此设备编号(非法设备)
    public static final short ERRCODE_INVALIDDEV = 0x0002;
    //通信故障
    public static final short ERRCODE_COMMUNICATION = 0x0003;
    //处理队列已满
    public static final short ERRCODE_TASK_FULL = 0x0004;




}
